Private

'---- TPositionComponent

Function lugi_glue_TPositionComponent_Changed_MzrkH7:Int( lua_vm:Byte Ptr )
	Local obj:TPositionComponent = TPositionComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushinteger( lua_vm, obj.Changed() )

	Return 1

End Function


Function lugi_glue_TPositionComponent_Reset_NFjM7C:Int( lua_vm:Byte Ptr )
	Local obj:TPositionComponent = TPositionComponent(lua_tobmaxobject(lua_vm, 1))
	Local _arg_1:Float = 0#
	Local _arg_2:Float = 0#
	' Get arguments off stack
	Select lua_gettop(lua_vm)
		Case 1
			' no arguments provided

		Case 2
			_arg_1 = lua_tonumber(lua_vm, 2)

		Default
			_arg_1 = lua_tonumber(lua_vm, 2)
			_arg_2 = lua_tonumber(lua_vm, 3)
	End Select ' Arguments retrieved from stack

	lua_pushinteger( lua_vm, obj.Reset(_arg_1, _arg_2) )

	Return 1

End Function


Function lugi_glue_TPositionComponent_Set_qBFSj1:Int( lua_vm:Byte Ptr )
	Local obj:TPositionComponent = TPositionComponent(lua_tobmaxobject(lua_vm, 1))
	Local _arg_1:Float = 0#
	Local _arg_2:Float = 0#
	' Get arguments off stack
	Select lua_gettop(lua_vm)
		Case 1
			' no arguments provided

		Case 2
			_arg_1 = lua_tonumber(lua_vm, 2)

		Default
			_arg_1 = lua_tonumber(lua_vm, 2)
			_arg_2 = lua_tonumber(lua_vm, 3)
	End Select ' Arguments retrieved from stack

	lua_pushinteger( lua_vm, obj.Set(_arg_1, _arg_2) )

	Return 1

End Function


Function lugi_glue_TPositionComponent_GetX_OZuaxv:Int( lua_vm:Byte Ptr )
	Local obj:TPositionComponent = TPositionComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushnumber( lua_vm, obj.GetX() )

	Return 1

End Function


Function lugi_glue_TPositionComponent_GetY_jzebv9:Int( lua_vm:Byte Ptr )
	Local obj:TPositionComponent = TPositionComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushnumber( lua_vm, obj.GetY() )

	Return 1

End Function


Function lugi_glue_TPositionComponent_SetX_Xi2UIs:Int( lua_vm:Byte Ptr )
	Local obj:TPositionComponent = TPositionComponent(lua_tobmaxobject(lua_vm, 1))
	Local _arg_1:Float = 0#
	If 2 <= lua_gettop(lua_vm) Then
		_arg_1 = lua_tonumber(lua_vm, 2)
	EndIf

	lua_pushinteger( lua_vm, obj.SetX(_arg_1) )

	Return 1

End Function


Function lugi_glue_TPositionComponent_SetY_u75vpK:Int( lua_vm:Byte Ptr )
	Local obj:TPositionComponent = TPositionComponent(lua_tobmaxobject(lua_vm, 1))
	Local _arg_1:Float = 0#
	If 2 <= lua_gettop(lua_vm) Then
		_arg_1 = lua_tonumber(lua_vm, 2)
	EndIf

	lua_pushinteger( lua_vm, obj.SetY(_arg_1) )

	Return 1

End Function


Function lugi_glue_TPositionComponent_Get_ewYdjQ:Int( lua_vm:Byte Ptr )
	Local obj:TPositionComponent = TPositionComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushbmaxobject( lua_vm, obj.Get() )

	Return 1

End Function


Function lugi_glue_TPositionComponent_Add_f7p9ZU:Int( lua_vm:Byte Ptr )
	Local obj:TPositionComponent = TPositionComponent(lua_tobmaxobject(lua_vm, 1))
	Local _arg_1:Float = 0#
	Local _arg_2:Float = 0#
	' Get arguments off stack
	Select lua_gettop(lua_vm)
		Case 1
			' no arguments provided

		Case 2
			_arg_1 = lua_tonumber(lua_vm, 2)

		Default
			_arg_1 = lua_tonumber(lua_vm, 2)
			_arg_2 = lua_tonumber(lua_vm, 3)
	End Select ' Arguments retrieved from stack

	lua_pushinteger( lua_vm, obj.Add(_arg_1, _arg_2) )

	Return 1

End Function


Function lugi_glue_TPositionComponent_AddX_WGASJv:Int( lua_vm:Byte Ptr )
	Local obj:TPositionComponent = TPositionComponent(lua_tobmaxobject(lua_vm, 1))
	Local _arg_1:Float = 0#
	If 2 <= lua_gettop(lua_vm) Then
		_arg_1 = lua_tonumber(lua_vm, 2)
	EndIf

	lua_pushinteger( lua_vm, obj.AddX(_arg_1) )

	Return 1

End Function


Function lugi_glue_TPositionComponent_AddY_ppBHE5:Int( lua_vm:Byte Ptr )
	Local obj:TPositionComponent = TPositionComponent(lua_tobmaxobject(lua_vm, 1))
	Local _arg_1:Float = 0#
	If 2 <= lua_gettop(lua_vm) Then
		_arg_1 = lua_tonumber(lua_vm, 2)
	EndIf

	lua_pushinteger( lua_vm, obj.AddY(_arg_1) )

	Return 1

End Function


Function lugi_glue_TPositionComponent_AddV_ILnONq:Int( lua_vm:Byte Ptr )
	Local obj:TPositionComponent = TPositionComponent(lua_tobmaxobject(lua_vm, 1))
	Local _arg_1:TVector2D = Null
	If 2 <= lua_gettop(lua_vm) Then
		_arg_1 = TVector2D(lua_tobmaxobject(lua_vm, 2))
	EndIf

	lua_pushinteger( lua_vm, obj.AddV(_arg_1) )

	Return 1

End Function


Function lugi_glue_TPositionComponent_GetRenderX_B2Vfdy:Int( lua_vm:Byte Ptr )
	Local obj:TPositionComponent = TPositionComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushnumber( lua_vm, obj.GetRenderX() )

	Return 1

End Function


Function lugi_glue_TPositionComponent_GetRenderY_3SH4W6:Int( lua_vm:Byte Ptr )
	Local obj:TPositionComponent = TPositionComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushnumber( lua_vm, obj.GetRenderY() )

	Return 1

End Function


Function lugi_glue_TPositionComponent_GetDistanceTo_jSTKDz:Int( lua_vm:Byte Ptr )
	Local obj:TPositionComponent = TPositionComponent(lua_tobmaxobject(lua_vm, 1))
	Local _arg_1:TPositionComponent = Null
	If 2 <= lua_gettop(lua_vm) Then
		_arg_1 = TPositionComponent(lua_tobmaxobject(lua_vm, 2))
	EndIf

	lua_pushnumber( lua_vm, obj.GetDistanceTo(_arg_1) )

	Return 1

End Function

'---- TTransformComponent

Function lugi_glue_TTransformComponent_GetRotation_Ew6UOW:Int( lua_vm:Byte Ptr )
	Local obj:TTransformComponent = TTransformComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushnumber( lua_vm, obj.GetRotation() )

	Return 1

End Function


Function lugi_glue_TTransformComponent_SetRotation_93iBae:Int( lua_vm:Byte Ptr )
	Local obj:TTransformComponent = TTransformComponent(lua_tobmaxobject(lua_vm, 1))
	Local _arg_1:Float = 0#
	If 2 <= lua_gettop(lua_vm) Then
		_arg_1 = lua_tonumber(lua_vm, 2)
	EndIf

	lua_pushinteger( lua_vm, obj.SetRotation(_arg_1) )

	Return 1

End Function


Function lugi_glue_TTransformComponent_SetScale_pyaic1:Int( lua_vm:Byte Ptr )
	Local obj:TTransformComponent = TTransformComponent(lua_tobmaxobject(lua_vm, 1))
	Local _arg_1:Float = 0#
	Local _arg_2:Float = 0#
	' Get arguments off stack
	Select lua_gettop(lua_vm)
		Case 1
			' no arguments provided

		Case 2
			_arg_1 = lua_tonumber(lua_vm, 2)

		Default
			_arg_1 = lua_tonumber(lua_vm, 2)
			_arg_2 = lua_tonumber(lua_vm, 3)
	End Select ' Arguments retrieved from stack

	lua_pushinteger( lua_vm, obj.SetScale(_arg_1, _arg_2) )

	Return 1

End Function


Function lugi_glue_TTransformComponent_GetScaleX_lARiKK:Int( lua_vm:Byte Ptr )
	Local obj:TTransformComponent = TTransformComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushnumber( lua_vm, obj.GetScaleX() )

	Return 1

End Function


Function lugi_glue_TTransformComponent_GetScaleY_W7fyqo:Int( lua_vm:Byte Ptr )
	Local obj:TTransformComponent = TTransformComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushnumber( lua_vm, obj.GetScaleY() )

	Return 1

End Function


Function lugi_glue_TTransformComponent_AddRotation_ItCvZP:Int( lua_vm:Byte Ptr )
	Local obj:TTransformComponent = TTransformComponent(lua_tobmaxobject(lua_vm, 1))
	Local _arg_1:Float = 0#
	If 2 <= lua_gettop(lua_vm) Then
		_arg_1 = lua_tonumber(lua_vm, 2)
	EndIf

	lua_pushinteger( lua_vm, obj.AddRotation(_arg_1) )

	Return 1

End Function


Function lugi_glue_TTransformComponent_Apply_macFOw:Int( lua_vm:Byte Ptr )
	Local obj:TTransformComponent = TTransformComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushinteger( lua_vm, obj.Apply() )

	Return 1

End Function

'---- TPhysicsComponent

Function lugi_glue_TPhysicsComponent_SetAcceleration_SSwW5h:Int( lua_vm:Byte Ptr )
	Local obj:TPhysicsComponent = TPhysicsComponent(lua_tobmaxobject(lua_vm, 1))
	Local _arg_1:Float = 0#
	Local _arg_2:Float = 0#
	' Get arguments off stack
	Select lua_gettop(lua_vm)
		Case 1
			' no arguments provided

		Case 2
			_arg_1 = lua_tonumber(lua_vm, 2)

		Default
			_arg_1 = lua_tonumber(lua_vm, 2)
			_arg_2 = lua_tonumber(lua_vm, 3)
	End Select ' Arguments retrieved from stack

	lua_pushinteger( lua_vm, obj.SetAcceleration(_arg_1, _arg_2) )

	Return 1

End Function


Function lugi_glue_TPhysicsComponent_ResetAcceleration_WgXUHO:Int( lua_vm:Byte Ptr )
	Local obj:TPhysicsComponent = TPhysicsComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushinteger( lua_vm, obj.ResetAcceleration() )

	Return 1

End Function


Function lugi_glue_TPhysicsComponent_AddAcceleration_CF0DKk:Int( lua_vm:Byte Ptr )
	Local obj:TPhysicsComponent = TPhysicsComponent(lua_tobmaxobject(lua_vm, 1))
	Local _arg_1:Float = 0#
	Local _arg_2:Float = 0#
	' Get arguments off stack
	Select lua_gettop(lua_vm)
		Case 1
			' no arguments provided

		Case 2
			_arg_1 = lua_tonumber(lua_vm, 2)

		Default
			_arg_1 = lua_tonumber(lua_vm, 2)
			_arg_2 = lua_tonumber(lua_vm, 3)
	End Select ' Arguments retrieved from stack

	lua_pushinteger( lua_vm, obj.AddAcceleration(_arg_1, _arg_2) )

	Return 1

End Function


Function lugi_glue_TPhysicsComponent_GetAcceleration_Gqet6f:Int( lua_vm:Byte Ptr )
	Local obj:TPhysicsComponent = TPhysicsComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushbmaxobject( lua_vm, obj.GetAcceleration() )

	Return 1

End Function


Function lugi_glue_TPhysicsComponent_SetFriction_XpQySR:Int( lua_vm:Byte Ptr )
	Local obj:TPhysicsComponent = TPhysicsComponent(lua_tobmaxobject(lua_vm, 1))
	Local _arg_1:Float = 0#
	If 2 <= lua_gettop(lua_vm) Then
		_arg_1 = lua_tonumber(lua_vm, 2)
	EndIf

	lua_pushinteger( lua_vm, obj.SetFriction(_arg_1) )

	Return 1

End Function


Function lugi_glue_TPhysicsComponent_GetFriction_sJm6IK:Int( lua_vm:Byte Ptr )
	Local obj:TPhysicsComponent = TPhysicsComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushnumber( lua_vm, obj.GetFriction() )

	Return 1

End Function


Function lugi_glue_TPhysicsComponent_SetVelocity_MK7ri3:Int( lua_vm:Byte Ptr )
	Local obj:TPhysicsComponent = TPhysicsComponent(lua_tobmaxobject(lua_vm, 1))
	Local _arg_1:Float = 0#
	Local _arg_2:Float = 0#
	' Get arguments off stack
	Select lua_gettop(lua_vm)
		Case 1
			' no arguments provided

		Case 2
			_arg_1 = lua_tonumber(lua_vm, 2)

		Default
			_arg_1 = lua_tonumber(lua_vm, 2)
			_arg_2 = lua_tonumber(lua_vm, 3)
	End Select ' Arguments retrieved from stack

	lua_pushinteger( lua_vm, obj.SetVelocity(_arg_1, _arg_2) )

	Return 1

End Function


Function lugi_glue_TPhysicsComponent_SetVelocityV_4yiUnj:Int( lua_vm:Byte Ptr )
	Local obj:TPhysicsComponent = TPhysicsComponent(lua_tobmaxobject(lua_vm, 1))
	Local _arg_1:TVector2D = Null
	If 2 <= lua_gettop(lua_vm) Then
		_arg_1 = TVector2D(lua_tobmaxobject(lua_vm, 2))
	EndIf

	lua_pushinteger( lua_vm, obj.SetVelocityV(_arg_1) )

	Return 1

End Function


Function lugi_glue_TPhysicsComponent_GetVelocity_3QkHUC:Int( lua_vm:Byte Ptr )
	Local obj:TPhysicsComponent = TPhysicsComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushbmaxobject( lua_vm, obj.GetVelocity() )

	Return 1

End Function

'---- TExpirationComponent

Function lugi_glue_TExpirationComponent_GetUpdatesLeft_LWLmcu:Int( lua_vm:Byte Ptr )
	Local obj:TExpirationComponent = TExpirationComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushinteger( lua_vm, obj.GetUpdatesLeft() )

	Return 1

End Function


Function lugi_glue_TExpirationComponent_HasExpired_vVw5Xg:Int( lua_vm:Byte Ptr )
	Local obj:TExpirationComponent = TExpirationComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushboolean( lua_vm, obj.HasExpired() )

	Return 1

End Function

'---- TColorComponent

Function lugi_glue_TColorComponent_Set_FoOnaQ:Int( lua_vm:Byte Ptr )
	Local obj:TColorComponent = TColorComponent(lua_tobmaxobject(lua_vm, 1))
	Local _arg_1:Int = 0
	Local _arg_2:Int = 0
	Local _arg_3:Int = 0
	Local _arg_4:Float = 0#
	' Get arguments off stack
	Select lua_gettop(lua_vm)
		Case 1
			' no arguments provided

		Case 2
			Select lua_type(lua_vm, 2)
				Case LUA_TBOOLEAN
					_arg_1 = lua_toboolean(lua_vm, 2)
				Default
					_arg_1 = lua_tointeger(lua_vm, 2)
			End Select

		Case 3
			Select lua_type(lua_vm, 2)
				Case LUA_TBOOLEAN
					_arg_1 = lua_toboolean(lua_vm, 2)
				Default
					_arg_1 = lua_tointeger(lua_vm, 2)
			End Select
			Select lua_type(lua_vm, 3)
				Case LUA_TBOOLEAN
					_arg_2 = lua_toboolean(lua_vm, 3)
				Default
					_arg_2 = lua_tointeger(lua_vm, 3)
			End Select

		Case 4
			Select lua_type(lua_vm, 2)
				Case LUA_TBOOLEAN
					_arg_1 = lua_toboolean(lua_vm, 2)
				Default
					_arg_1 = lua_tointeger(lua_vm, 2)
			End Select
			Select lua_type(lua_vm, 3)
				Case LUA_TBOOLEAN
					_arg_2 = lua_toboolean(lua_vm, 3)
				Default
					_arg_2 = lua_tointeger(lua_vm, 3)
			End Select
			Select lua_type(lua_vm, 4)
				Case LUA_TBOOLEAN
					_arg_3 = lua_toboolean(lua_vm, 4)
				Default
					_arg_3 = lua_tointeger(lua_vm, 4)
			End Select

		Default
			Select lua_type(lua_vm, 2)
				Case LUA_TBOOLEAN
					_arg_1 = lua_toboolean(lua_vm, 2)
				Default
					_arg_1 = lua_tointeger(lua_vm, 2)
			End Select
			Select lua_type(lua_vm, 3)
				Case LUA_TBOOLEAN
					_arg_2 = lua_toboolean(lua_vm, 3)
				Default
					_arg_2 = lua_tointeger(lua_vm, 3)
			End Select
			Select lua_type(lua_vm, 4)
				Case LUA_TBOOLEAN
					_arg_3 = lua_toboolean(lua_vm, 4)
				Default
					_arg_3 = lua_tointeger(lua_vm, 4)
			End Select
			_arg_4 = lua_tonumber(lua_vm, 5)
	End Select ' Arguments retrieved from stack

	lua_pushinteger( lua_vm, obj.Set(_arg_1, _arg_2, _arg_3, _arg_4) )

	Return 1

End Function


Function lugi_glue_TColorComponent_Apply_iV3ZsV:Int( lua_vm:Byte Ptr )
	Local obj:TColorComponent = TColorComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushinteger( lua_vm, obj.Apply() )

	Return 1

End Function


Function lugi_glue_TColorComponent_GetRed_LKt0ma:Int( lua_vm:Byte Ptr )
	Local obj:TColorComponent = TColorComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushinteger( lua_vm, obj.GetRed() )

	Return 1

End Function


Function lugi_glue_TColorComponent_GetGreen_gIkNei:Int( lua_vm:Byte Ptr )
	Local obj:TColorComponent = TColorComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushinteger( lua_vm, obj.GetGreen() )

	Return 1

End Function


Function lugi_glue_TColorComponent_GetBlue_7pcJQo:Int( lua_vm:Byte Ptr )
	Local obj:TColorComponent = TColorComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushinteger( lua_vm, obj.GetBlue() )

	Return 1

End Function


Function lugi_glue_TColorComponent_GetAlpha_LkV37w:Int( lua_vm:Byte Ptr )
	Local obj:TColorComponent = TColorComponent(lua_tobmaxobject(lua_vm, 1))

	lua_pushnumber( lua_vm, obj.GetAlpha() )

	Return 1

End Function


Function lugi_glue_TColorComponent_SetAlpha_xQy8fX:Int( lua_vm:Byte Ptr )
	Local obj:TColorComponent = TColorComponent(lua_tobmaxobject(lua_vm, 1))
	Local _arg_1:Float = 0#
	If 2 <= lua_gettop(lua_vm) Then
		_arg_1 = lua_tonumber(lua_vm, 2)
	EndIf

	lua_pushinteger( lua_vm, obj.SetAlpha(_arg_1) )

	Return 1

End Function

'---- TArtemaxInterface
Global lugi_lugi_glob_TArtemaxInterface_oevoiK:TArtemaxInterface = New TArtemaxInterface

Function lugi_glue_TArtemaxInterface_KeyDown_79r9pv:Int( lua_vm:Byte Ptr )
	Local obj:TArtemaxInterface = lugi_lugi_glob_TArtemaxInterface_oevoiK
	Local _arg_1:Int = 0
	If 1 <= lua_gettop(lua_vm) Then
		Select lua_type(lua_vm, 1)
			Case LUA_TBOOLEAN
				_arg_1 = lua_toboolean(lua_vm, 1)
			Default
				_arg_1 = lua_tointeger(lua_vm, 1)
		End Select
	EndIf

	lua_pushboolean( lua_vm, obj.lKeyDown(_arg_1) )

	Return 1

End Function


Function lugi_glue_TArtemaxInterface_KeyHit_qR729e:Int( lua_vm:Byte Ptr )
	Local obj:TArtemaxInterface = lugi_lugi_glob_TArtemaxInterface_oevoiK
	Local _arg_1:Int = 0
	If 1 <= lua_gettop(lua_vm) Then
		Select lua_type(lua_vm, 1)
			Case LUA_TBOOLEAN
				_arg_1 = lua_toboolean(lua_vm, 1)
			Default
				_arg_1 = lua_tointeger(lua_vm, 1)
		End Select
	EndIf

	lua_pushinteger( lua_vm, obj.lKeyHit(_arg_1) )

	Return 1

End Function


Function lugi_glue_TArtemaxInterface_DeleteEntity_vhJlCM:Int( lua_vm:Byte Ptr )
	Local obj:TArtemaxInterface = lugi_lugi_glob_TArtemaxInterface_oevoiK
	Local _arg_1:TEntity = Null
	If 1 <= lua_gettop(lua_vm) Then
		_arg_1 = TEntity(lua_tobmaxobject(lua_vm, 1))
	EndIf

	lua_pushinteger( lua_vm, obj.lDeleteEntity(_arg_1) )

	Return 1

End Function


Function lugi_glue_TArtemaxInterface_SetEntityVisible_kXQKn4:Int( lua_vm:Byte Ptr )
	Local obj:TArtemaxInterface = lugi_lugi_glob_TArtemaxInterface_oevoiK
	Local _arg_1:TEntity = Null
	Local _arg_2:Int = 0
	' Get arguments off stack
	Select lua_gettop(lua_vm)
		Case 1
			_arg_1 = TEntity(lua_tobmaxobject(lua_vm, 1))

		Default
			_arg_1 = TEntity(lua_tobmaxobject(lua_vm, 1))
			Select lua_type(lua_vm, 2)
				Case LUA_TBOOLEAN
					_arg_2 = lua_toboolean(lua_vm, 2)
				Default
					_arg_2 = lua_tointeger(lua_vm, 2)
			End Select
	End Select ' Arguments retrieved from stack

	lua_pushinteger( lua_vm, obj.lSetVisible(_arg_1, _arg_2) )

	Return 1

End Function


Function lugi_glue_TArtemaxInterface_EntityCollide_63mOlc:Int( lua_vm:Byte Ptr )
	Local obj:TArtemaxInterface = lugi_lugi_glob_TArtemaxInterface_oevoiK
	Local _arg_1:TEntity = Null
	Local _arg_2:TEntity = Null
	Local _arg_3:Int = 0
	' Get arguments off stack
	Select lua_gettop(lua_vm)
		Case 1
			_arg_1 = TEntity(lua_tobmaxobject(lua_vm, 1))

		Case 2
			_arg_1 = TEntity(lua_tobmaxobject(lua_vm, 1))
			_arg_2 = TEntity(lua_tobmaxobject(lua_vm, 2))

		Default
			_arg_1 = TEntity(lua_tobmaxobject(lua_vm, 1))
			_arg_2 = TEntity(lua_tobmaxobject(lua_vm, 2))
			Select lua_type(lua_vm, 3)
				Case LUA_TBOOLEAN
					_arg_3 = lua_toboolean(lua_vm, 3)
				Default
					_arg_3 = lua_tointeger(lua_vm, 3)
			End Select
	End Select ' Arguments retrieved from stack

	lua_pushboolean( lua_vm, obj.lEntityCollide(_arg_1, _arg_2, _arg_3) )

	Return 1

End Function


Function lugi_glue_TArtemaxInterface_GetTransformComponent_sSPaOM:Int( lua_vm:Byte Ptr )
	Local obj:TArtemaxInterface = lugi_lugi_glob_TArtemaxInterface_oevoiK
	Local _arg_1:TEntity = Null
	If 1 <= lua_gettop(lua_vm) Then
		_arg_1 = TEntity(lua_tobmaxobject(lua_vm, 1))
	EndIf

	lua_pushbmaxobject( lua_vm, obj.GetTransformComponent(_arg_1) )

	Return 1

End Function


Function lugi_glue_TArtemaxInterface_GetPhysicsComponent_313Ivf:Int( lua_vm:Byte Ptr )
	Local obj:TArtemaxInterface = lugi_lugi_glob_TArtemaxInterface_oevoiK
	Local _arg_1:TEntity = Null
	If 1 <= lua_gettop(lua_vm) Then
		_arg_1 = TEntity(lua_tobmaxobject(lua_vm, 1))
	EndIf

	lua_pushbmaxobject( lua_vm, obj.GetPhysicsComponent(_arg_1) )

	Return 1

End Function


Function lugi_glue_TArtemaxInterface_GetPositionComponent_KE7Tp2:Int( lua_vm:Byte Ptr )
	Local obj:TArtemaxInterface = lugi_lugi_glob_TArtemaxInterface_oevoiK
	Local _arg_1:TEntity = Null
	If 1 <= lua_gettop(lua_vm) Then
		_arg_1 = TEntity(lua_tobmaxobject(lua_vm, 1))
	EndIf

	lua_pushbmaxobject( lua_vm, obj.GetPositionComponent(_arg_1) )

	Return 1

End Function


Function lugi_glue_TArtemaxInterface_GetExpirationComponent_gG3uIc:Int( lua_vm:Byte Ptr )
	Local obj:TArtemaxInterface = lugi_lugi_glob_TArtemaxInterface_oevoiK
	Local _arg_1:TEntity = Null
	If 1 <= lua_gettop(lua_vm) Then
		_arg_1 = TEntity(lua_tobmaxobject(lua_vm, 1))
	EndIf

	lua_pushbmaxobject( lua_vm, obj.GetExpirationComponent(_arg_1) )

	Return 1

End Function


Function lugi_glue_TArtemaxInterface_GetColorComponent_zHHNeN:Int( lua_vm:Byte Ptr )
	Local obj:TArtemaxInterface = lugi_lugi_glob_TArtemaxInterface_oevoiK
	Local _arg_1:TEntity = Null
	If 1 <= lua_gettop(lua_vm) Then
		_arg_1 = TEntity(lua_tobmaxobject(lua_vm, 1))
	EndIf

	lua_pushbmaxobject( lua_vm, obj.GetColorComponent(_arg_1) )

	Return 1

End Function


Function lugi_glue_TArtemaxInterface_GetImageFrame_gLz43X:Int( lua_vm:Byte Ptr )
	Local obj:TArtemaxInterface = lugi_lugi_glob_TArtemaxInterface_oevoiK
	Local _arg_1:TEntity = Null
	If 1 <= lua_gettop(lua_vm) Then
		_arg_1 = TEntity(lua_tobmaxobject(lua_vm, 1))
	EndIf

	lua_pushinteger( lua_vm, obj.lGetImageFrame(_arg_1) )

	Return 1

End Function


Function lugi_glue_TArtemaxInterface_GetImage_T78yB5:Int( lua_vm:Byte Ptr )
	Local obj:TArtemaxInterface = lugi_lugi_glob_TArtemaxInterface_oevoiK
	Local _arg_1:TEntity = Null
	If 1 <= lua_gettop(lua_vm) Then
		_arg_1 = TEntity(lua_tobmaxobject(lua_vm, 1))
	EndIf

	lua_pushbmaxobject( lua_vm, obj.lGetImage(_arg_1) )

	Return 1

End Function


Function lugi_glue_TArtemaxInterface_GetResourceImage_SOEnqb:Int( lua_vm:Byte Ptr )
	Local obj:TArtemaxInterface = lugi_lugi_glob_TArtemaxInterface_oevoiK
	Local _arg_1:String = ""
	Local _arg_2:String = ""
	' Get arguments off stack
	Select lua_gettop(lua_vm)
		Case 1
			_arg_1 = lua_tostring(lua_vm, 1)

		Default
			_arg_1 = lua_tostring(lua_vm, 1)
			_arg_2 = lua_tostring(lua_vm, 2)
	End Select ' Arguments retrieved from stack

	lua_pushbmaxobject( lua_vm, obj.lGetResourceImage(_arg_1, _arg_2) )

	Return 1

End Function


Function lugi_glue_TArtemaxInterface_GetResourceSound_wvDnQS:Int( lua_vm:Byte Ptr )
	Local obj:TArtemaxInterface = lugi_lugi_glob_TArtemaxInterface_oevoiK
	Local _arg_1:String = ""
	Local _arg_2:String = ""
	' Get arguments off stack
	Select lua_gettop(lua_vm)
		Case 1
			_arg_1 = lua_tostring(lua_vm, 1)

		Default
			_arg_1 = lua_tostring(lua_vm, 1)
			_arg_2 = lua_tostring(lua_vm, 2)
	End Select ' Arguments retrieved from stack

	lua_pushbmaxobject( lua_vm, obj.lGetResourceSound(_arg_1, _arg_2) )

	Return 1

End Function


Function lugi_glue_TArtemaxInterface_PlaySound_G2N1MV:Int( lua_vm:Byte Ptr )
	Local obj:TArtemaxInterface = lugi_lugi_glob_TArtemaxInterface_oevoiK
	Local _arg_1:String = ""
	Local _arg_2:String = ""
	Local _arg_3:Float = 0#
	Local _arg_4:TChannel = Null
	' Get arguments off stack
	Select lua_gettop(lua_vm)
		Case 1
			_arg_1 = lua_tostring(lua_vm, 1)

		Case 2
			_arg_1 = lua_tostring(lua_vm, 1)
			_arg_2 = lua_tostring(lua_vm, 2)

		Case 3
			_arg_1 = lua_tostring(lua_vm, 1)
			_arg_2 = lua_tostring(lua_vm, 2)
			_arg_3 = lua_tonumber(lua_vm, 3)

		Default
			_arg_1 = lua_tostring(lua_vm, 1)
			_arg_2 = lua_tostring(lua_vm, 2)
			_arg_3 = lua_tonumber(lua_vm, 3)
			_arg_4 = TChannel(lua_tobmaxobject(lua_vm, 4))
	End Select ' Arguments retrieved from stack

	lua_pushbmaxobject( lua_vm, obj.lPlaySound(_arg_1, _arg_2, _arg_3, _arg_4) )

	Return 1

End Function


Function lugi_glue_TArtemaxInterface_StopAudioChannel_SApuLn:Int( lua_vm:Byte Ptr )
	Local obj:TArtemaxInterface = lugi_lugi_glob_TArtemaxInterface_oevoiK
	Local _arg_1:TChannel = Null
	If 1 <= lua_gettop(lua_vm) Then
		_arg_1 = TChannel(lua_tobmaxobject(lua_vm, 1))
	EndIf

	lua_pushinteger( lua_vm, obj.lStopAudioChannel(_arg_1) )

	Return 1

End Function

Function lugi_p_lugi_initpre_Yodbym64ZRx0TmbY(lua_vm:Byte Ptr, register_field(off%, typ%, name$, class@ Ptr), register_method(luafn:Int(state:Byte Ptr), name$, class@ Ptr))
	' Register instance method TPositionComponent#Changed
	register_method( lugi_glue_TPositionComponent_Changed_MzrkH7, "Changed", Byte Ptr(TTypeID.ForName("TPositionComponent")._class) )
	' Register instance method TPositionComponent#Reset
	register_method( lugi_glue_TPositionComponent_Reset_NFjM7C, "Reset", Byte Ptr(TTypeID.ForName("TPositionComponent")._class) )
	' Register instance method TPositionComponent#Set
	register_method( lugi_glue_TPositionComponent_Set_qBFSj1, "Set", Byte Ptr(TTypeID.ForName("TPositionComponent")._class) )
	' Register instance method TPositionComponent#GetX
	register_method( lugi_glue_TPositionComponent_GetX_OZuaxv, "GetX", Byte Ptr(TTypeID.ForName("TPositionComponent")._class) )
	' Register instance method TPositionComponent#GetY
	register_method( lugi_glue_TPositionComponent_GetY_jzebv9, "GetY", Byte Ptr(TTypeID.ForName("TPositionComponent")._class) )
	' Register instance method TPositionComponent#SetX
	register_method( lugi_glue_TPositionComponent_SetX_Xi2UIs, "SetX", Byte Ptr(TTypeID.ForName("TPositionComponent")._class) )
	' Register instance method TPositionComponent#SetY
	register_method( lugi_glue_TPositionComponent_SetY_u75vpK, "SetY", Byte Ptr(TTypeID.ForName("TPositionComponent")._class) )
	' Register instance method TPositionComponent#Get
	register_method( lugi_glue_TPositionComponent_Get_ewYdjQ, "Get", Byte Ptr(TTypeID.ForName("TPositionComponent")._class) )
	' Register instance method TPositionComponent#Add
	register_method( lugi_glue_TPositionComponent_Add_f7p9ZU, "Add", Byte Ptr(TTypeID.ForName("TPositionComponent")._class) )
	' Register instance method TPositionComponent#AddX
	register_method( lugi_glue_TPositionComponent_AddX_WGASJv, "AddX", Byte Ptr(TTypeID.ForName("TPositionComponent")._class) )
	' Register instance method TPositionComponent#AddY
	register_method( lugi_glue_TPositionComponent_AddY_ppBHE5, "AddY", Byte Ptr(TTypeID.ForName("TPositionComponent")._class) )
	' Register instance method TPositionComponent#AddV
	register_method( lugi_glue_TPositionComponent_AddV_ILnONq, "AddV", Byte Ptr(TTypeID.ForName("TPositionComponent")._class) )
	' Register instance method TPositionComponent#GetRenderX
	register_method( lugi_glue_TPositionComponent_GetRenderX_B2Vfdy, "GetRenderX", Byte Ptr(TTypeID.ForName("TPositionComponent")._class) )
	' Register instance method TPositionComponent#GetRenderY
	register_method( lugi_glue_TPositionComponent_GetRenderY_3SH4W6, "GetRenderY", Byte Ptr(TTypeID.ForName("TPositionComponent")._class) )
	' Register instance method TPositionComponent#GetDistanceTo
	register_method( lugi_glue_TPositionComponent_GetDistanceTo_jSTKDz, "GetDistanceTo", Byte Ptr(TTypeID.ForName("TPositionComponent")._class) )

	' Register instance method TTransformComponent#GetRotation
	register_method( lugi_glue_TTransformComponent_GetRotation_Ew6UOW, "GetRotation", Byte Ptr(TTypeID.ForName("TTransformComponent")._class) )
	' Register instance method TTransformComponent#SetRotation
	register_method( lugi_glue_TTransformComponent_SetRotation_93iBae, "SetRotation", Byte Ptr(TTypeID.ForName("TTransformComponent")._class) )
	' Register instance method TTransformComponent#SetScale
	register_method( lugi_glue_TTransformComponent_SetScale_pyaic1, "SetScale", Byte Ptr(TTypeID.ForName("TTransformComponent")._class) )
	' Register instance method TTransformComponent#GetScaleX
	register_method( lugi_glue_TTransformComponent_GetScaleX_lARiKK, "GetScaleX", Byte Ptr(TTypeID.ForName("TTransformComponent")._class) )
	' Register instance method TTransformComponent#GetScaleY
	register_method( lugi_glue_TTransformComponent_GetScaleY_W7fyqo, "GetScaleY", Byte Ptr(TTypeID.ForName("TTransformComponent")._class) )
	' Register instance method TTransformComponent#AddRotation
	register_method( lugi_glue_TTransformComponent_AddRotation_ItCvZP, "AddRotation", Byte Ptr(TTypeID.ForName("TTransformComponent")._class) )
	' Register instance method TTransformComponent#Apply
	register_method( lugi_glue_TTransformComponent_Apply_macFOw, "Apply", Byte Ptr(TTypeID.ForName("TTransformComponent")._class) )

	' Register instance method TPhysicsComponent#SetAcceleration
	register_method( lugi_glue_TPhysicsComponent_SetAcceleration_SSwW5h, "SetAcceleration", Byte Ptr(TTypeID.ForName("TPhysicsComponent")._class) )
	' Register instance method TPhysicsComponent#ResetAcceleration
	register_method( lugi_glue_TPhysicsComponent_ResetAcceleration_WgXUHO, "ResetAcceleration", Byte Ptr(TTypeID.ForName("TPhysicsComponent")._class) )
	' Register instance method TPhysicsComponent#AddAcceleration
	register_method( lugi_glue_TPhysicsComponent_AddAcceleration_CF0DKk, "AddAcceleration", Byte Ptr(TTypeID.ForName("TPhysicsComponent")._class) )
	' Register instance method TPhysicsComponent#GetAcceleration
	register_method( lugi_glue_TPhysicsComponent_GetAcceleration_Gqet6f, "GetAcceleration", Byte Ptr(TTypeID.ForName("TPhysicsComponent")._class) )
	' Register instance method TPhysicsComponent#SetFriction
	register_method( lugi_glue_TPhysicsComponent_SetFriction_XpQySR, "SetFriction", Byte Ptr(TTypeID.ForName("TPhysicsComponent")._class) )
	' Register instance method TPhysicsComponent#GetFriction
	register_method( lugi_glue_TPhysicsComponent_GetFriction_sJm6IK, "GetFriction", Byte Ptr(TTypeID.ForName("TPhysicsComponent")._class) )
	' Register instance method TPhysicsComponent#SetVelocity
	register_method( lugi_glue_TPhysicsComponent_SetVelocity_MK7ri3, "SetVelocity", Byte Ptr(TTypeID.ForName("TPhysicsComponent")._class) )
	' Register instance method TPhysicsComponent#SetVelocityV
	register_method( lugi_glue_TPhysicsComponent_SetVelocityV_4yiUnj, "SetVelocityV", Byte Ptr(TTypeID.ForName("TPhysicsComponent")._class) )
	' Register instance method TPhysicsComponent#GetVelocity
	register_method( lugi_glue_TPhysicsComponent_GetVelocity_3QkHUC, "GetVelocity", Byte Ptr(TTypeID.ForName("TPhysicsComponent")._class) )

	' Register instance method TExpirationComponent#GetUpdatesLeft
	register_method( lugi_glue_TExpirationComponent_GetUpdatesLeft_LWLmcu, "GetUpdatesLeft", Byte Ptr(TTypeID.ForName("TExpirationComponent")._class) )
	' Register instance method TExpirationComponent#HasExpired
	register_method( lugi_glue_TExpirationComponent_HasExpired_vVw5Xg, "HasExpired", Byte Ptr(TTypeID.ForName("TExpirationComponent")._class) )

	' Register instance method TColorComponent#Set
	register_method( lugi_glue_TColorComponent_Set_FoOnaQ, "Set", Byte Ptr(TTypeID.ForName("TColorComponent")._class) )
	' Register instance method TColorComponent#Apply
	register_method( lugi_glue_TColorComponent_Apply_iV3ZsV, "Apply", Byte Ptr(TTypeID.ForName("TColorComponent")._class) )
	' Register instance method TColorComponent#GetRed
	register_method( lugi_glue_TColorComponent_GetRed_LKt0ma, "GetRed", Byte Ptr(TTypeID.ForName("TColorComponent")._class) )
	' Register instance method TColorComponent#GetGreen
	register_method( lugi_glue_TColorComponent_GetGreen_gIkNei, "GetGreen", Byte Ptr(TTypeID.ForName("TColorComponent")._class) )
	' Register instance method TColorComponent#GetBlue
	register_method( lugi_glue_TColorComponent_GetBlue_7pcJQo, "GetBlue", Byte Ptr(TTypeID.ForName("TColorComponent")._class) )
	' Register instance method TColorComponent#GetAlpha
	register_method( lugi_glue_TColorComponent_GetAlpha_LkV37w, "GetAlpha", Byte Ptr(TTypeID.ForName("TColorComponent")._class) )
	' Register instance method TColorComponent#SetAlpha
	register_method( lugi_glue_TColorComponent_SetAlpha_xQy8fX, "SetAlpha", Byte Ptr(TTypeID.ForName("TColorComponent")._class) )

	' Register global method TArtemaxInterface#lKeyDown
	register_method( lugi_glue_TArtemaxInterface_KeyDown_79r9pv, "KeyDown", Null )
	' Register global method TArtemaxInterface#lKeyHit
	register_method( lugi_glue_TArtemaxInterface_KeyHit_qR729e, "KeyHit", Null )
	' Register global method TArtemaxInterface#lDeleteEntity
	register_method( lugi_glue_TArtemaxInterface_DeleteEntity_vhJlCM, "DeleteEntity", Null )
	' Register global method TArtemaxInterface#lSetVisible
	register_method( lugi_glue_TArtemaxInterface_SetEntityVisible_kXQKn4, "SetEntityVisible", Null )
	' Register global method TArtemaxInterface#lEntityCollide
	register_method( lugi_glue_TArtemaxInterface_EntityCollide_63mOlc, "EntityCollide", Null )
	' Register global method TArtemaxInterface#GetTransformComponent
	register_method( lugi_glue_TArtemaxInterface_GetTransformComponent_sSPaOM, "GetTransformComponent", Null )
	' Register global method TArtemaxInterface#GetPhysicsComponent
	register_method( lugi_glue_TArtemaxInterface_GetPhysicsComponent_313Ivf, "GetPhysicsComponent", Null )
	' Register global method TArtemaxInterface#GetPositionComponent
	register_method( lugi_glue_TArtemaxInterface_GetPositionComponent_KE7Tp2, "GetPositionComponent", Null )
	' Register global method TArtemaxInterface#GetExpirationComponent
	register_method( lugi_glue_TArtemaxInterface_GetExpirationComponent_gG3uIc, "GetExpirationComponent", Null )
	' Register global method TArtemaxInterface#GetColorComponent
	register_method( lugi_glue_TArtemaxInterface_GetColorComponent_zHHNeN, "GetColorComponent", Null )
	' Register global method TArtemaxInterface#lGetImageFrame
	register_method( lugi_glue_TArtemaxInterface_GetImageFrame_gLz43X, "GetImageFrame", Null )
	' Register global method TArtemaxInterface#lGetImage
	register_method( lugi_glue_TArtemaxInterface_GetImage_T78yB5, "GetImage", Null )
	' Register global method TArtemaxInterface#lGetResourceImage
	register_method( lugi_glue_TArtemaxInterface_GetResourceImage_SOEnqb, "GetResourceImage", Null )
	' Register global method TArtemaxInterface#lGetResourceSound
	register_method( lugi_glue_TArtemaxInterface_GetResourceSound_wvDnQS, "GetResourceSound", Null )
	' Register global method TArtemaxInterface#lPlaySound
	register_method( lugi_glue_TArtemaxInterface_PlaySound_G2N1MV, "PlaySound", Null )
	' Register global method TArtemaxInterface#lStopAudioChannel
	register_method( lugi_glue_TArtemaxInterface_StopAudioChannel_SApuLn, "StopAudioChannel", Null )

End Function
New LuGIInitFunction.PreInit(lugi_p_lugi_initpre_Yodbym64ZRx0TmbY, False)


Function lugi_p_lugi_initpost_fLXpYfCbvfkQmUBX(lua_vm:Byte Ptr, constructor:Int(state:Byte Ptr))
	' Register constructor for TPositionComponent
	lua_pushlightuserdata( lua_vm, Byte Ptr(TTypeID.ForName("TPositionComponent")._class) )
	lua_pushcclosure( lua_vm, constructor, 1 )
	lua_setfield( lua_vm, LUA_GLOBALSINDEX, "NewTPositionComponent" )
	' Register constructor for TTransformComponent
	lua_pushlightuserdata( lua_vm, Byte Ptr(TTypeID.ForName("TTransformComponent")._class) )
	lua_pushcclosure( lua_vm, constructor, 1 )
	lua_setfield( lua_vm, LUA_GLOBALSINDEX, "NewTTransformComponent" )
	' Register constructor for TPhysicsComponent
	lua_pushlightuserdata( lua_vm, Byte Ptr(TTypeID.ForName("TPhysicsComponent")._class) )
	lua_pushcclosure( lua_vm, constructor, 1 )
	lua_setfield( lua_vm, LUA_GLOBALSINDEX, "NewTPhysicsComponent" )
	' Register constructor for TExpirationComponent
	lua_pushlightuserdata( lua_vm, Byte Ptr(TTypeID.ForName("TExpirationComponent")._class) )
	lua_pushcclosure( lua_vm, constructor, 1 )
	lua_setfield( lua_vm, LUA_GLOBALSINDEX, "NewTExpirationComponent" )
	' Register constructor for TColorComponent
	lua_pushlightuserdata( lua_vm, Byte Ptr(TTypeID.ForName("TColorComponent")._class) )
	lua_pushcclosure( lua_vm, constructor, 1 )
	lua_setfield( lua_vm, LUA_GLOBALSINDEX, "NewTColorComponent" )
End Function
New LuGIInitFunction.PostInit(lugi_p_lugi_initpost_fLXpYfCbvfkQmUBX)



Public

